package xin.vote.model;

import java.math.BigDecimal;
import java.util.List;

public class MatchPKInfo extends MatchPKInfoKey {
    private Integer firstplayerid;

    private String firstsongname;

    private Byte firstticketcount;

    private BigDecimal firstneedscore;

    private BigDecimal firstscore;

    private Integer secondplayerid;

    private String secondsongname;

    private Byte secondticketcount;

    private BigDecimal secondneedscore;

    private BigDecimal secondscore;

    private Byte battleflag;
    
    private Matchs match;
    
    private Players firstplayer;
    
    private Players secondplayer;
    
	public Players getFirstplayer() {
		return firstplayer;
	}
	
	public String getPlayername1() {
		return firstplayer.getPlayername();
	}

	public void setFirstplayer(Players firstplayer) {
		this.firstplayer = firstplayer;
	}

	public Players getSecondplayer() {
		return secondplayer;
	}
	
	public String getPlayername2() {
		return secondplayer.getPlayername();
	}

	public void setSecondplayer(Players secondplayer) {
		this.secondplayer = secondplayer;
	}

	public Integer getFirstplayerid() {
        return firstplayerid;
    }

    public void setFirstplayerid(Integer firstplayerid) {
        this.firstplayerid = firstplayerid;
    }

    public String getFirstsongname() {
        return firstsongname;
    }

    public void setFirstsongname(String firstsongname) {
        this.firstsongname = firstsongname == null ? null : firstsongname.trim();
    }

    public Byte getFirstticketcount() {
        return firstticketcount;
    }

    public void setFirstticketcount(Byte firstticketcount) {
        this.firstticketcount = firstticketcount;
    }

    public BigDecimal getFirstneedscore() {
        return firstneedscore;
    }

    public void setFirstneedscore(BigDecimal firstneedscore) {
        this.firstneedscore = firstneedscore;
    }

    public BigDecimal getFirstscore() {
        return firstscore;
    }

    public void setFirstscore(BigDecimal firstscore) {
        this.firstscore = firstscore;
    }

    public Integer getSecondplayerid() {
        return secondplayerid;
    }

    public void setSecondplayerid(Integer secondplayerid) {
        this.secondplayerid = secondplayerid;
    }

    public String getSecondsongname() {
        return secondsongname;
    }

    public void setSecondsongname(String secondsongname) {
        this.secondsongname = secondsongname == null ? null : secondsongname.trim();
    }

    public Byte getSecondticketcount() {
        return secondticketcount;
    }

    public void setSecondticketcount(Byte secondticketcount) {
        this.secondticketcount = secondticketcount;
    }

    public BigDecimal getSecondneedscore() {
        return secondneedscore;
    }

    public void setSecondneedscore(BigDecimal secondneedscore) {
        this.secondneedscore = secondneedscore;
    }

    public BigDecimal getSecondscore() {
        return secondscore;
    }

    public void setSecondscore(BigDecimal secondscore) {
        this.secondscore = secondscore;
    }

    public Byte getBattleflag() {
        return battleflag;
    }

    public void setBattleflag(Byte battleflag) {
        this.battleflag = battleflag;
    }

	public Matchs getMatch() {
		return match;
	}

	public void setMatch(Matchs match) {
		this.match = match;
	}
	public String getMatchname() {
		return match.getMatchname();
	}
}